<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增单区块信息')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-oneblockinfo-add"  th:object="${oneblockinfo}">
		
           <!--块编码-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->块编码</label>
                <div class="col-sm-8">
                    <input id="blockid"  name="blockid" th:field="*{blockid}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--块编号-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->块编号</label>
                <div class="col-sm-8">
                    <input id="blocknumber" name="blocknumber" th:field="*{blocknumber}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--数据哈希-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->数据哈希</label>
                <div class="col-sm-8">
                    <input id="datahash" name="datahash" th:field="*{datahash}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--前块哈希-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->前块哈希</label>
                <div class="col-sm-8">
                    <input id="previoushash" name="previoushash" th:field="*{previoushash}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--通道-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->通道</label>
                <div class="col-sm-8">
                    <input id="channelid" name="channelid" th:field="*{channelid}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--信封数量-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->信封数量</label>
                <div class="col-sm-8">
                    <input id="envelopecount" name="envelopecount" th:field="*{envelopecount}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--信封内容-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->信封内容</label>
                <div class="col-sm-8">
                    <input id="envelopeinfos" name="envelopeinfos" th:field="*{envelopeinfos}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--交易数量-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->交易数量</label>
                <div class="col-sm-8">
                    <input id="transactioncount" name="transactioncount" th:field="*{transactioncount}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--交易元数据-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->交易元数据</label>
                <div class="col-sm-8">
                    <input id="transactionsmetadata" name="transactionsmetadata" th:field="*{transactionsmetadata}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--区块所有字段-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->区块所有字段</label>
                <div class="col-sm-8">
                    <input id="blockallfields" name="blockallfields" th:field="*{blockallfields}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--区块头前哈希-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->区块头前哈希</label>
                <div class="col-sm-8">
                    <input id="blockheaderprevioushash" name="blockheaderprevioushash" th:field="*{blockheaderprevioushash}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--区块头数据哈希-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->区块头数据哈希</label>
                <div class="col-sm-8">
                    <input id="blockheaderdatahash" name="blockheaderdatahash" th:field="*{blockheaderdatahash}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--区块头序列化尺寸-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->区块头序列化尺寸</label>
                <div class="col-sm-8">
                    <input id="blockheaderserializedsize" name="blockheaderserializedsize" th:field="*{blockheaderserializedsize}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--区块头编号-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->区块头编号</label>
                <div class="col-sm-8">
                    <input id="blockheadernumber" name="blockheadernumber" th:field="*{blockheadernumber}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--区块头所有字段-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->区块头所有字段</label>
                <div class="col-sm-8">
                    <input id="blockheaderallfields" name="blockheaderallfields" th:field="*{blockheaderallfields}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--区块体数据量-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->区块体数据量</label>
                <div class="col-sm-8">
                    <input id="blockdatadatacount" name="blockdatadatacount" th:field="*{blockdatadatacount}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--区块体数据列表-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->区块体数据列表</label>
                <div class="col-sm-8">
                    <input id="blockdatadatalist" name="blockdatadatalist" th:field="*{blockdatadatalist}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--区块体所有字段-->
           <div class="form-group col-sm-6">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->区块体所有字段</label>
                <div class="col-sm-8">
                    <input id="blockdataallfields" name="blockdataallfields" th:field="*{blockdataallfields}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项00-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项00</label>
                <div class="col-sm-8">
                    <input id="bz00"  name="bz00" th:field="*{bz00}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项01-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项01</label>
                <div class="col-sm-8">
                    <input id="bz01"  name="bz01" th:field="*{bz01}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项02-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项02</label>
                <div class="col-sm-8">
                    <input id="bz02"  name="bz02" th:field="*{bz02}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项03-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项03</label>
                <div class="col-sm-8">
                    <input id="bz03"  name="bz03" th:field="*{bz03}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项04-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项04</label>
                <div class="col-sm-8">
                    <input id="bz04"  name="bz04" th:field="*{bz04}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项05-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项05</label>
                <div class="col-sm-8">
                    <input id="bz05"  name="bz05" th:field="*{bz05}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项06-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项06</label>
                <div class="col-sm-8">
                    <input id="bz06"  name="bz06" th:field="*{bz06}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项07-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项07</label>
                <div class="col-sm-8">
                    <input id="bz07"  name="bz07" th:field="*{bz07}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项08-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项08</label>
                <div class="col-sm-8">
                    <input id="bz08"  name="bz08" th:field="*{bz08}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项09-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项09</label>
                <div class="col-sm-8">
                    <input id="bz09"  name="bz09" th:field="*{bz09}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项10-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项10</label>
                <div class="col-sm-8">
                    <input id="bz10"  name="bz10" th:field="*{bz10}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项11-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项11</label>
                <div class="col-sm-8">
                    <input id="bz11"  name="bz11" th:field="*{bz11}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项12-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项12</label>
                <div class="col-sm-8">
                    <input id="bz12"  name="bz12" th:field="*{bz12}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项13-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项13</label>
                <div class="col-sm-8">
                    <input id="bz13"  name="bz13" th:field="*{bz13}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项14-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项14</label>
                <div class="col-sm-8">
                    <input id="bz14"  name="bz14" th:field="*{bz14}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项15-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项15</label>
                <div class="col-sm-8">
                    <input id="bz15"  name="bz15" th:field="*{bz15}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项16-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项16</label>
                <div class="col-sm-8">
                    <input id="bz16"  name="bz16" th:field="*{bz16}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项17-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项17</label>
                <div class="col-sm-8">
                    <input id="bz17"  name="bz17" th:field="*{bz17}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项18-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项18</label>
                <div class="col-sm-8">
                    <input id="bz18"  name="bz18" th:field="*{bz18}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>

           <!--备注项19-->
           <div class="form-group col-sm-6 hidden">
                <label class="col-sm-4 control-label"><!--span style="color: red; ">*</span-->备注项19</label>
                <div class="col-sm-8">
                    <input id="bz19"  name="bz19" th:field="*{bz19}" class="form-control" type="text" /> <!--required-->
                </div>
            </div>


             
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "blockchain/oneblockinfo"
        $("#form-oneblockinfo-add").validate({
            focusCleanup: true
        });

        //初始化赋值
        initValue();

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-oneblockinfo-add').serialize());
            }
        }
        //初始化赋值
        function initValue(){
            // $('#blockid').val(''); //块编码
            // $('#blocknumber').val(''); //块编号
            // $('#datahash').val(''); //数据哈希
            // $('#previoushash').val(''); //前块哈希
            // $('#channelid').val(''); //通道
            // $('#envelopecount').val(''); //信封数量
            // $('#envelopeinfos').val(''); //信封内容
            // $('#transactioncount').val(''); //交易数量
            // $('#transactionsmetadata').val(''); //交易元数据
            // $('#blockallfields').val(''); //区块所有字段
            // $('#blockheaderprevioushash').val(''); //区块头前哈希
            // $('#blockheaderdatahash').val(''); //区块头数据哈希
            // $('#blockheaderserializedsize').val(''); //区块头序列化尺寸
            // $('#blockheadernumber').val(''); //区块头编号
            // $('#blockheaderallfields').val(''); //区块头所有字段
            // $('#blockdatadatacount').val(''); //区块体数据量
            // $('#blockdatadatalist').val(''); //区块体数据列表
            // $('#blockdataallfields').val(''); //区块体所有字段
            // $('#bz00').val(''); //备注项00
            // $('#bz01').val(''); //备注项01
            // $('#bz02').val(''); //备注项02
            // $('#bz03').val(''); //备注项03
            // $('#bz04').val(''); //备注项04
            // $('#bz05').val(''); //备注项05
            // $('#bz06').val(''); //备注项06
            // $('#bz07').val(''); //备注项07
            // $('#bz08').val(''); //备注项08
            // $('#bz09').val(''); //备注项09
            // $('#bz10').val(''); //备注项10
            // $('#bz11').val(''); //备注项11
            // $('#bz12').val(''); //备注项12
            // $('#bz13').val(''); //备注项13
            // $('#bz14').val(''); //备注项14
            // $('#bz15').val(''); //备注项15
            // $('#bz16').val(''); //备注项16
            // $('#bz17').val(''); //备注项17
            // $('#bz18').val(''); //备注项18
            // $('#bz19').val(''); //备注项19

        }
    </script>
</body>
</html>
